# -*- coding:utf-8 -*-
from django.conf.urls import url
from views import ResourceManagementListCreateView, ResourceManagementDetailView, PlayingQueueListCreateView, \
    PlayingQueueDetailView, PlayingQueueMaterialListCreateView, PlayingQueueMaterialDetailView, QueryResourceListView, \
    AuthorityCodeListView, AuthorityCodePlayingQueueRelationApiView, ResourceManagementPlayingQueueMaterialRelationView


urlpatterns = [
    url(r"^resource/$", ResourceManagementListCreateView.as_view()),
    url(r"^resource/(?P<pk>\d+)/$", ResourceManagementDetailView.as_view()),
    url(r"^queue/$", PlayingQueueListCreateView.as_view()),
    url(r"^queue/elevator/$", AuthorityCodeListView.as_view()),
    url(r"^queue/relation/$", AuthorityCodePlayingQueueRelationApiView.as_view()),
    url(r"^queue/(?P<pk>\d+)/$", PlayingQueueDetailView.as_view()),
    url(r"^queue/material/$", PlayingQueueMaterialListCreateView.as_view()),
    url(r"^queue/material/resource/$", QueryResourceListView.as_view()),
    url(r"^queue/material/relation/$", ResourceManagementPlayingQueueMaterialRelationView.as_view()),
    url(r"^queue/material/(?P<pk>\d+)/$", PlayingQueueMaterialDetailView.as_view()),
]